#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/12/4 23:35
# @Author  : lizhen
# @Site    : 
# @File    : circlenums.py
# @Software: PyCharm


def get_value(num, row, column):
    return max(abs(row - (num - 1)), abs(column - (num - 1))) + 1


def main():
    # num = input("请输入最大的数：")
    num = 5
    _arr_2d = [['' for j in range(2 * num - 1)] for i in range(2 * num - 1)]
    for i in range(2 * num - 1):
        for j in range(2 * num - 1):
            _arr_2d[i][j] = get_value(num, i, j)
            print(_arr_2d[i][j], end=' ')
        print()


if __name__ == '__main__':
    main()
